import {Entity , Column , PrimaryGeneratedColumn} from 'typeorm';
import {BaseEntity} from 'egg-cool-entity';

/**
 * 系统用户
 */
@Entity ({name : 'goods_like'})
export default class GoodsLike extends BaseEntity {
    @PrimaryGeneratedColumn ()  // 自增主键
    id : number;
    // 商品ID
    @Column ({type : 'bigint'})
    productId : number;
    // 用户openid
    @Column ()
    openid : string;
}
